//
//  Step1Deal.m
//  Gunz
//
//  Created by Joggy on 16/4/14.
//  Copyright © 2016年 NUPT. All rights reserved.
//

#import "Step1Select.h"
#import "GZConst.h"

@implementation Step1Select

-(instancetype)initWithMode:(NSString *)mode one:(NSString *)modeOne two:(NSString *)modeTwo {
    self = [super initWithFrame:CGRectMake(0, 0, [GZConst getScreenWidth], 17)];
    //交易模式
    UILabel *jiaoyimoshi = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 62, 17)];
    jiaoyimoshi.layer.position = CGPointMake(62*proportion, self.frame.size.height/2);
    jiaoyimoshi.textColor = TEXT_TITLE_COLOR;
    jiaoyimoshi.font = [UIFont systemFontOfSize:14];
    jiaoyimoshi.text = mode;
    [self addSubview:jiaoyimoshi];
    _pointOne = [[PointButton alloc] init];
    _pointOne.layer.position = CGPointMake(128*proportion, jiaoyimoshi.layer.position.y);
    [self addSubview:_pointOne];
    UILabel *inviteLab = [[UILabel alloc] initWithFrame:CGRectMake(0, 9, 44, 17)];
    inviteLab.layer.position = CGPointMake(_pointOne.layer.position.x + 28, jiaoyimoshi.layer.position.y);
    inviteLab.textColor = TEXT_TITLE_COLOR;
    inviteLab.font = [UIFont systemFontOfSize:17];
    inviteLab.text = modeOne;
    [self addSubview:inviteLab];
    _pointTwo = [[PointButton alloc] init];
    _pointTwo.layer.position = CGPointMake(215*proportion, jiaoyimoshi.layer.position.y);
    [self addSubview:_pointTwo];
    UILabel *rewardLab = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 44, 17)];
    rewardLab.layer.position = CGPointMake(_pointTwo.layer.position.x + 28, jiaoyimoshi.layer.position.y);
    rewardLab.textColor = TEXT_TITLE_COLOR;
    rewardLab.font = [UIFont systemFontOfSize:17];
    rewardLab.text = modeTwo;
    [self addSubview:rewardLab];
    return self;
}

@end
